package com.uh.microservice.core;

/**
 * 静态变量集合
 * Created by liming on 2017/9/18.
 */
public class CONSTANTS {
    public static final String UTF8 = "UTF-8";
    public static final String SECURITY_MD5 = "MD5";
    public static final String SECURITY_SHA1 = "SHA1";
    public static final String SECURITY_DES = "DES";
    public static final String SECURITY_AES = "AES";
    public static final String _DES_PWD = "1qa2ws!@#$%";

    public static final String DF_JSON = "json";
    public static final String DF_XML = "xml";
    public static final String RESULT_NODE = "response";

    public static final String TY_INT_ARR = "ints";
    public static final String TY_CHAR_ARR = "chars";
    public static final String TY_CHAR = "char";
    public static final String TY_TEXT = "text";
    public static final String TY_INT = "int";
    public static final String TY_BIGINT = "bigint";
    public static final String TY_DATE = "date";

    // 数据库主键名称
    public static final String C_PK = "ID";
    // 创建时间
    public static final String C_CRT_TIME = "CREATE_TIME";
    // 创建者
    public static final String C_CRT_ID = "CREATE_BY";
    // 记录创建的IP地址
    public static final String C_CRT_IP = "CREATE_IP";
    // 记录更改时间
    public static final String C_UPT_TIME = "UPDATE_TIME";
    // 记录最后更改者
    public static final String C_UPT_ID = "UPDATE_BY";
    // 记录最后更改IP地址
    public static final String C_UPT_IP = "UPDATE_IP";
    // 排序号
    public static final String C_ORDER_NUM = "ORDER_NUM";

    // 是否超级管理员
    public static final String C_SUPER_ADMIN = "IS_SUPER_ADMIN";
    public static final String C_DEPT_ID = "COLLECTOR_DEPT_ID";
    // 超级管理员账号
    public static final String SUPER_ADMIN_ACCOUNT = "admin";


    public static final int RE_LOGIN_CODE = -9;

    public static final String COOKIE_ID = "uid";
    public static final String CURREN_SID = "CURR_SID";

    public static final String REQ_IP = "ip";
    public static final String REQ_ID = "sid";
    public static final String REQ_UKEY = "USER";
    public static final String REQ_DEPT = "LOGIN_USER_DEPT";
    public static final String LOGIN_USER_ID = "LOGIN_USER_ID";

    //POS
    public static final String REQ_CKEY = "COLLECTOR";

    //用户登录
    public static final String DO_LOGIN="dologin";

    //sql操作类型
    public static final String NULL = "NULL";
    public static final String ADD = "ADD";
    public static final String UPDATE = "UPDATE";

    //假删
    public static final String DEL = "DEL";
    //真删
    public static final String REMOVE = "REMOVE";
    //规则
    public static final String RULE = "RULE";
    /**
     * 竖线分隔
     */
    public static final String VERTICAL="|";
    /**
     * 横线
     */
    public static final String HORIZONTAL="-";
    //金额计算常量
    public static final Double FACTOR_DOUBLE_100 = 100.00;
    public static final int FACTOR_INT_100 = 100;
    /**
     * 超时时间，5分钟 过期
     */
    public static final int OVERDUE_TIME=5 * 60 * 1000;

    /**
     * 停车订单业务编码
     */
    public static final String PARKING_ORDER_NO_BS_CODE = "10";
    /**
     * 支付订单业务编码
     */
    public static final String ORDER_NO_BS_CODE = "20";
    /**
     * 退费订单业务编码
     */
    public static final String REFUND_ORDER_NO_BS_CODE = "30";
    /**
     * 优惠券业务编码
     */
    public static final String TICKET_NO_BS_CODE = "40";
    /**
     * 优惠券业务编码
     */
    public static final String ACCOUNT_BS_CODE = "100";
    /**
     * 任务订单业务号
     */
    public static final String TASK_ORDER_NO_BS_CODE = "TASK99";
    /**
     * 停车记录平均拍照数
     */
    public static final int PHOTO_AVG_COUNT=3;
    
    /**
     * 默认系统标题
     */
    public static final String SYS_MAIN_TITLE_DEFAULT="创泰停车云";
}
